//路由文件
import React, {Component} from 'react'
import {BrowserRouter, Switch, Route} from 'react-router-dom'
import Test from './test'
import Home from './home'
import Page from './page'
import '../css/common.scss'

class Routes extends Component{
    render(){
        return(
            <BrowserRouter basename='/'>
                <Switch>
                    <Route exact path='/' component={Test} />
                    <Route exact path='/home' component={Home} />
                    <Route exact path='/page' component={Page} />
                </Switch>
            </BrowserRouter>
        )
    }

}

export default Routes
